package com.ruoyi.inventory.service.impl;

import java.util.List;

import com.ruoyi.inventory.domain.Allot;
import com.ruoyi.inventory.mapper.AllotMapper;
import com.ruoyi.inventory.service.AllotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class AllotServiceImpl implements AllotService
{
    @Autowired
    private AllotMapper tAllotMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param document 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public List<Allot> selectTAllot(String document)
    {
        return tAllotMapper.selectTAllot(document);
    }

    @Override
    public int insertTAllot(Allot allot) {
        return tAllotMapper.insertTAllot(allot);
    }

    @Override
    public int deleteTInventoryAllotById(Long id) {
        return tAllotMapper.deleteTInventoryAllotById(id);
    }

    @Override
    public int updateTAllot(Allot allot) {
        return tAllotMapper.updateTAllot(allot);
    }
}
